import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
export default new Vuex.Store({
    state: {
        city: "武汉"
    },
    mutations: {
        changeStateCity(state, val) {
            state.city = val
        }
    },
    actions: {
        changeCity(ctx, val) {
            ctx.commit("changeStateCity", val)
        }

    },

})